package com.platform.service;

import com.platform.entity.VideoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ApiVideoMapper;


@Service
public class ApiVideoService {
    @Autowired
    private ApiVideoMapper videoDao;

    public VideoVo queryObject(Integer id) {
        return videoDao.queryObject(id);
    }

    public List<VideoVo> queryList(Map<String, Object> map) {
        return videoDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return videoDao.queryTotal(map);
    }

    public int save(VideoVo video) {
        return videoDao.save(video);
    }

    public int update(VideoVo video) {
        return videoDao.update(video);
    }

    public int delete(Integer id) {
        return videoDao.delete(id);
    }

    public int deleteBatch(Integer[] ids) {
        return videoDao.deleteBatch(ids);
    }
}
